﻿@model IEnumerable<AppABM.Models.Materia>

@{
    ViewBag.Title = "Inscribirse";
}

<h2>Inscribirse</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Inscribirse</legend>

        <div>
            @Html.Hidden("idAlumno", (long)this.ViewBag.idAlumno)
        </div>

        <div class="editor-field">
            @Html.DropDownList("idMateria", Model.Select(m => new SelectListItem{Text = m.Nombre, Value = m.Id.ToString()}))
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
